﻿using System;
using System.Collections.Generic;
using System.Text;
#if (PocketPC || Smartphone || WindowsCE)
#else
using System.Runtime.Serialization;
#endif

using RaisingStudio.Common.Exceptions;

namespace RaisingStudio.Data.Providers.Exceptions
{
    [Serializable]
    public class ObjectAccessorException : ExceptionBase
    {
        public ObjectAccessorException()
            : base("ObjectAccessor caused an exception.")
        {

        }

        public ObjectAccessorException(Exception ex)
            : base(ex.Message, ex)
        {
        }

        public ObjectAccessorException(string message)
            : base(message)
        {
        }

        public ObjectAccessorException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

#if (PocketPC || Smartphone || WindowsCE)
#else
        protected ObjectAccessorException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
#endif
    }
}
